package com.ruoyi.note.domain;

import com.ruoyi.common.annotation.Excels;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 内容对象 t_book_content
 * 
 * @author cl
 * @date 2021-04-15
 */
public class TBookContent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 内容 */
    private String content;

    /** 重要级别 */
    @Excel(name = "重要级别")
    private Integer degree;

    /** 层级 */
    @Excel(name = "层级")
    private Integer level;

    /** 见解 */
    private String think;

    /** 主题 */
    @Excel(name = "主题")
    private String title;

    /** 用户 */
    private Long userId;

    /** 书籍 */
    @Excel(name = "书籍")
    private Long bookId;

    /** 章节 */
    @Excel(name = "章节")
    private Long chapterId;

    /** 部门对象 */
    @Excels({
            @Excel(name = "笔记", targetAttr = "bookName", type = Excel.Type.EXPORT)
    })
    private TBook book;

    /** 部门对象 */
    @Excels({
            @Excel(name = "章节", targetAttr = "chapterName", type = Excel.Type.EXPORT)
    })
    private TBookChapter chapter;
    private String  wentryJson;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setDegree(Integer degree) 
    {
        this.degree = degree;
    }

    public Integer getDegree() 
    {
        return degree;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }
    public void setThink(String think) 
    {
        this.think = think;
    }

    public String getThink() 
    {
        return think;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setChapterId(Long chapterId) 
    {
        this.chapterId = chapterId;
    }

    public Long getChapterId() 
    {
        return chapterId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("degree", getDegree())
            .append("level", getLevel())
            .append("think", getThink())
            .append("title", getTitle())
            .append("userId", getUserId())
            .append("bookId", getBookId())
            .append("chapterId", getChapterId())
            .toString();
    }

    public String getWentryJson() {
        return wentryJson;
    }

    public void setWentryJson(String wentryJson) {
        this.wentryJson = wentryJson;
    }

    public TBook getBook() {
        return book;
    }

    public void setBook(TBook book) {
        this.book = book;
    }

    public TBookChapter getChapter() {
        return chapter;
    }

    public void setChapter(TBookChapter chapter) {
        this.chapter = chapter;
    }
}
